﻿using System;

namespace RandomArray
{
    class Program
    {
        static void Main(string[] args)
        {
            //int a = new Int32();
            //Int32 b = new Int32();
            Random rnd = new Random();// C# specific

            int[] x = new int[1000];
            long s = 0;

            for (int i = 0; i < x.Length; i++)
            {
                x[i] = rnd.Next(-100, 100);
                s += x[i];
            }

            Console.WriteLine(s);

            int n = 100;
            int min = 1;
            int max = 10;

            int[] a = new int[n];
            int[] b = new int[n];

            int[] sum = new int[n];
            int[] mul = new int[n];

            for (int i = 0; i < n; i++)
            {
                a[i] = rnd.Next(min, max);
                b[i] = rnd.Next(min, max);

                sum[i] = a[i] + b[i];
                mul[i] = a[i] * b[i];
            }

            Console.ReadKey();
        }
    }
}
